//
//  HTTPRequest.h
//  Worke
//
//  Created by zero on 2018/4/16.
//  Copyright © 2018年 worke. All rights reserved.
//

#import "AFHTTPSessionManager.h"

@interface HTTPRequest : AFHTTPSessionManager

+ (instancetype)shareApiHelper;

@property (nonatomic,strong) NSString *str;
#pragma mark -->POST请求
/**
 POST请求

 @param exhibition <#exhibition description#>
 @param parameters <#parameters description#>
 @param success <#resultObject description#>
 @param errorBlock <#errorBlock description#>
 */
- (void)POSTExhibition:(UIView *)exhibition UrlString:(NSString *)urlString Parameters:(NSDictionary *)parameters Success:(void(^)(id resultObject))success Error:(void(^)(void))errorBlock;
/**
 GET请求

 @param exhibition <#exhibition description#>
 @param urlString <#urlString description#>
 @param parameters <#parameters description#>
 @param success <#success description#>
 @param errorBlock <#errorBlock description#>
 */
- (void)GETExhibition:(UIView *)exhibition UrlString:(NSString *)urlString Parameters:(NSDictionary *)parameters Success:(void(^)(id resultObject))success Error:(void(^)(void))errorBlock;
/**
 上传图片

 @param messageView <#messageView description#>
 @param urlString <#urlString description#>
 @param parameters <#parameters description#>
 @param array <#array description#>
 @param succeed <#succeed description#>
 @param errorBlock <#errorBlock description#>
 */
- (void)POSTPitcure:(UIView *)messageView URLString:(NSString *)urlString Parameters:(NSDictionary *)parameters  pitcure:(NSArray *)array Success:(void(^)(id resultObject))succeed error:(void(^)(void))errorBlock;

@end
